package com.cn.jinl.api;

import com.cn.jinl.domain.OnDutyProduct;
import com.cn.jinl.domain.OnDutyProductBanVo;
import com.cn.jinl.domain.ProductStorageRelate;
import com.cn.jinl.utils.QueryForm;

import java.util.List;
import java.util.Map;

public interface IOnDutyProductService {

    List<OnDutyProduct> getFirstOnDutyProducts()throws Exception;
    List<OnDutyProduct> getOnDutyProductsByDutyDay(QueryForm queryForm)throws Exception;

    Map<String,List<OnDutyProduct>> getOnDutyProductList(QueryForm queryForm)throws Exception;

    Map<String,String> getOnDutyProductStatusMap(QueryForm queryForm)throws Exception;

    List<OnDutyProduct> getTodayOnDutyProducts(String dutyDay,String whiteDay)throws Exception;

    List<ProductStorageRelate> getOnDutyProductsByPlanId(String planId)throws Exception;

    String addBatchOnDutyProduct(List<OnDutyProduct> onDutyProducts)throws Exception;

    String addOnDutyProduct(OnDutyProduct onDutyProduct)throws Exception;

    String updateOnDutyProduct(OnDutyProduct onDutyProduct)throws Exception;

    Map<String,OnDutyProductBanVo> getOnDutyProductBanList()throws Exception;
    Map<String,OnDutyProductBanVo> getOnDutyProductPersonList()throws Exception;

    //扫码报工 设备号
    OnDutyProduct getScanOnDutyProductByDeviceCode(String deviceCode)throws Exception;
    //首页获取产线动态
    Map<String,Object> getOnDutyProductDetail()throws Exception;
    Map<String,Integer> getOnDutyRunningProduct()throws Exception;

    //获取在产任务
    List<OnDutyProduct> getTodayOnDutyProductTask()throws Exception;


    OnDutyProduct getPlanIdByTaskId(String taskId)throws Exception;

    Map<String,String> getOnDutyAndWhiteDay()throws Exception;



}
